// components/form/form-input/form-input.js
Component({
  properties: {
    label: String,
    value: String,
    type: String,
    requiredMark: {
      type: Boolean,
      value: true
    },
    activeMode: {
      type: Boolean,
      value: false
    },
  },

  observers: {
    'value': function (val) {
      let self = this;
      if(val) {
        self.setData({
          inputValue: val
        })
      }
    },
  },
 
  data: {
    inputValue: '',
    styleCss: 'padding: 38rpx 0; line-height: 36rpx font-size: 28rpx; border-bottom: 1rpx dashed #f0f0f0;'
  },

  methods: {
    blurValue(e) {
      let self = this;
      self.triggerEvent('getvalue', {val: e.detail.value})
    }
  }
})